package ms.maplestory.boot.util;

import ms.maplestory.boot.configs.ServerConfig;

public class ServerUtil {

    private static ServerConfig serverConfig;

    public static void init() {
        ServerConfig serverConfig = getServerConfig();
    }

    public static ServerConfig getServerConfig() {
        if (serverConfig == null) {
            serverConfig = SpringUtil.getBean(ServerConfig.class);
        }
        return serverConfig;
    }
}
